-- GENERATED SPELL FOR [Glassweb Spider] --


function spell0_5856(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5856', 5282, 1)
end

function Sorts_5856(pUnit, Event)
local choix_sorts_5856 = math.random(0, 0)
if choix_sorts_5856 == 0 then
pUnit:RegisterEvent('spell0_5856', 1, 1)
end
end

function mob5856_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5856', math.random(1500, 3000), 1)
end

function mob5856_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5856_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5856_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5856, 1, 'mob5856_Action')
RegisterUnitEvent(5856, 2, 'mob5856_Leave')
RegisterUnitEvent(5856, 3, 'mob5856_Kill')
RegisterUnitEvent(5856, 4, 'mob5856_Die')
